package com.hm.business.shorturl.service.impl;

import com.hm.business.shorturl.service.NumberService;
import com.sankuai.inf.leaf.common.Result;
import com.sankuai.inf.leaf.service.SegmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Merlin
 * @Title: NumberServiceImpl
 * @ProjectName shorturl
 * @Description: TODO
 * @date 2021/6/18 11:08
 */
@Service
public class NumberServiceImpl implements NumberService {

    @Autowired
    private SegmentService segmentService;

    @Override
    public Long getNumber(String bizTag) {
        Result result = segmentService.getId(bizTag);
        return result.getId();
    }

}
